Skip to content

fix: resolve device names to serial numbers and align with SDK 0.13.0 models#218

Merged
cdot65 merged 2 commits into
mainfrom
cdot65/fix-sdk-013-real-api
Apr 17, 2026
Merged

fix: resolve device names to serial numbers and align with SDK 0.13.0 models#218
cdot65 merged 2 commits into
mainfrom
cdot65/fix-sdk-013-real-api

Conversation

@cdot65

@cdot65 cdot65 commented Apr 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Device name resolution: --device austin-fw1 now works — CLI resolves names to serial numbers via client.device.fetch(). Serial numbers (14-15 digits) pass through directly.
  • SDK model alignment: Mock data and live API calls updated to match actual SDK 0.13.0 Pydantic model field names (local config, device ops, incidents).
  • Version bumped to 1.3.2.

Test plan

  • scm operations route-table --device austin-fw1 resolves name to serial
  • scm operations route-table --device 007951000123456 passes serial directly
  • scm local list --device austin-fw1 works
  • Mock mode still works for all commands
  • All 957 tests pass, mypy clean, ruff clean

🤖 Generated with Claude Code

cdot65 and others added 2 commits April 17, 2026 04:23
- device params take serial numbers (14-15 digits), not names
- local config: use real model fields (local_version, timestamp, serial, md5)
- incidents: use real model fields (incident_id, title, raised_time)
- incidents: extract search results from .data, not .incidents
- incidents: alerts use alert_id/title/state, remediations is a string
- update mock data, CLI table columns, tests, and docs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add resolve_device_serial() to SCMClient — accepts device name or serial
- Serial numbers (14-15 digits) pass through, names resolved via device API
- Wire resolution into local config and device operations methods
- Update CLI help text to "Device name or serial number"
- Align mock data with real SDK 0.13.0 model schemas
- Bump version to 1.3.2

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Failed to generate code suggestions for PR

@cdot65 cdot65 merged commit 375fbfa into main Apr 17, 2026
2 checks passed
@cdot65 cdot65 deleted the cdot65/fix-sdk-013-real-api branch April 17, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant